<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>渠道:</label>
					<input type="text" name="channel" value="${channel!}" />
				</li>
				<li>
					<label>用户ID:</label>
					<input type="text" name="userId" value="${userId!}" />
				</li>
				<li>
					<label>允许推送:</label>
					<input type="text" name="allowPush" value="${allowPush!}" />
				</li>
				<li class="colspan">
					<label>上次登录:</label>
					<input type="text" name="startLastLoginDate" size="15" class="date" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${startLastLoginDate!}" />
					<span>-</span>
					<input type="text" name="endLastLoginDate" size="15" class="date" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${endLastLoginDate!}" />
				</li>
				<li class="colspan">
					<label>创建日期:</label>
					<input type="text" name="startCreateDate" size="15" class="date" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${startCreateDate!}" />
					<span>-</span>
					<input type="text" name="endCreateDate" size="15" class="date" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${endCreateDate!}" />
				</li>
				<#include "../include_page/disabled.html"/>
			</ul>
			<div class="subBar">
				<ul>
					<li>
						<button type="submit" class="buttonActive">搜索</button>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a href="sysAppClient/enable.do?id={sid}" title="确定要启用该客户端吗?" target="ajaxTodo"><i class="icon-circle icon-large"></i> 启用</a></li>
			<li><a href="sysAppClient/disable.do?id={sid}" title="确定要禁用该客户端吗?" target="ajaxTodo"><i class="icon-ban-circle icon-large"></i> 禁用</a></li>
		</ul>
	</div>
<@_sysAppClientList channel=channel advanced=true 
            userId=userId allowPush=allowPush startLastLoginDate=startLastLoginDate endLastLoginDate=endLastLoginDate 
            startCreateDate=startCreateDate endCreateDate=endCreateDate disabled=disabled 
            orderField=orderField orderType=orderType pageIndex=pageNum count=numPerPage>
	<table class="list" width="100%" layoutH="92">
		<thead>
			<tr>
				<th>ID</th>
				<th>版本</th>
				<th>渠道</th>
				<th>唯一标识符</th>
				<th>用户ID</th>
				<th>用户昵称</th>
				<th>已禁用</th>
				<th>允许推送</th>
				<th orderField="lastLoginDate" class="<#if orderField??&&'lastLoginDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">上次登录日期</th>
				<th>上次登陆IP</th>
				<th orderField="createDate" class="<#if orderField??&&'createDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">创建日期</th>
				<th>已禁用</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
				<@t.merge 'userIds' a.userId!/>
			</#list>
			<@_sysUser ids=t.userIds!><#assign userMap=map!/></@_sysUser>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td>${a.id!}</td>
				<td>${a.version!}</td>
				<td>${a.channel!}</td>
				<td>${a.uuid!}</td>
				<td>${a.userId!}</td>
				<td>${(userMap[a.userId?string].nickName)!}</td>
				<td>${(a.disabled)?then('<font color="red">禁用</font>','正常')}</td>
				<td>${a.allowPush?string('允许','')}</td>
				<td>${a.lastLoginDate!}</td>
				<td>${a.lastLoginIp!}</td>
				<td>${a.createDate!}</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</@_sysAppClientList>
</div>